package cn.com.dcsgo.mapper;

import cn.com.dcsgo.pojo.OrderProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * OrderProduct
 *
 * @author Dcsgo
 * @since 2025/3/13 19:04
 */

public interface OrderProductMapper {
    int insert(OrderProduct orderProduct);

    int deleteByOrderId(Long orderId);

    /**
     * 批量插入订单关联的商品id
     *
     * @param orderId    orderId
     * @param productIds productIds
     * @return int
     */
    int insertProductIds(@Param("orderId") Long orderId, @Param("productIds") List<Long> productIds);
}
